findElementsById

public abstract List<Element> findElementsById(String id)

Returns an immutable list of the Element objects found in the current search context by the given id. Returns an empty list if no elements were found.

Parameters

id

a string that represents the id attribute of the HTML element

Throws

if the given id is empty

when this instance is closed